{extends file="./link.tpl"}
{block name="head"}
{/block}
{block name="body"}
  <br/><br/><br/>
  <form name="selectionForm" action="pendingInstallment.php" method="post">
    <center>
      <table>
        <tr>
          <td>
            <select name="selectPandingOrAll">
              <option value="pendingInstallment">Pending Installment</option>
              <option value="allCards">All Cards</option>
            </select>
            <input type="submit" name="subSelection" value="go">
          </td>
        </tr>
      </table>
    </center>
  </form>
  <table align="center" border="1" cellspacing='0' cellpadding='2'>
    <tr>
    	<th align="center">Card No</th>
    	<th align="center">Last Installment Receive Date</th>
    	<th align="center">Pending Installment</th>
    </tr>
    {section name=res loop=$pendingInstallmentArray}
      <tr>
        <td align="center">{$pendingInstallmentArray[res].loanDrawId}</td>
        <td align="center">{if $pendingInstallmentArray[res].lastResieveDate == '01-01-1970'}Not Received{else}{$pendingInstallmentArray[res].lastResieveDate}{/if}</td>
        <td align="center">{$pendingInstallmentArray[res].pendingInstallment}</td>
      </tr>
    {/section}
  </table>
{/block}